import request from "@/utils/request";

// 列表
export function lists(params) {
  return request({
    url: "/manage/reconciliation/lists",
    method: "get",
    params,
  });
}

// 对账
export function reconciliation(data) {
  return request({
    url: "/manage/reconciliation/reconciliation",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 撤销
export function revoke(data) {
  return request({
    url: "/manage/reconciliation/revoke",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

// 打款
export function pay(data) {
  return request({
    url: "/manage/reconciliation/pay",
    method: "post",
    data: data,
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
